/**
 * Create by yz_wy_power on 2018/7/4
 */

/**
 * 1.路由对照表---后台点餐系统
 * 2.
 */
const prefix = '';
export default [
  {
    path: prefix + '/actions',
    name: 'Actions',
    meta: {
      title: 'OA-点餐系统',
      requiredAuth: true
    },
    component: () => import('@/components/content/actionList/lists'),
    redirect: '/actions/config',
    children: [
      {
        path: 'config',
        name: 'OrderConfig',
        meta: {
          access: ['admin', 'super_admin'],
          title: 'OA-点餐系统-设置',
          requiredAuth: true
        },
        component: () => import('@/components/content/basicConfig/index')
      },
      {
        path: 'graphDetail',
        name: 'GraphDetail',
        meta: {
          access: ['admin', 'super_admin'],
          title: 'OA-点餐系统-报表',
          requiredAuth: true
        },
        component: () => import('@/components/content/graphDetail/index')
      },
      {
        path: 'edit',
        name: 'newsSetting',
        meta: {
          access: ['admin', 'super_admin'],
          title: 'OA-点餐系统-报表',
          requiredAuth: true
        },
        component: () => import('@/components/content/recruitEdit/index')
      }
    ]
  },
  {
    path: prefix + '/mobileGraphDetail',
    name: 'MobileGraphDetail',
    meta: {
      access: ['admin', 'super_admin'],
      title: '手机端-点餐系统-报表',
      requiredAuth: true
    },
    component: () => import('@/components/mobile/simpleStatistics.vue')
  },
  {
    path: prefix + '/login',
    name: 'Login',
    meta: {
      title: '登录',
      requiredAuth: true
    },
    component: () => import('@/components/login/login')
  },
  {
    path: prefix + '/',
    redirect: '/actions/config',
  }]
